package com.cmb.service.dto;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.alibaba.fastjson.JSON;
import com.cmb.dto.ParamColumnInfo;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author wyp867322
 * @version 1.0
 * @date 2024/8/6 21:49
 */
@Slf4j
public class AnalyseHeadRow implements ReadListener<ParamColumnInfo> {

    private static final Logger log = LoggerFactory.getLogger(AnalyseHeadRow.class);

    @Override
    public void invoke(ParamColumnInfo excelHeadInfo, AnalysisContext analysisContext) {
        log.info("解析到一条数据:{}", JSON.toJSONString(excelHeadInfo));
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }
}
